Fix development header on loong64 with respect to missing _Float16 type
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Wed, 8 Apr 2026 14:43:38 +0000 (16:43 +0200)
committerSébastien Villemot <sebastien@debian.org>
Wed, 8 Apr 2026 14:43:38 +0000 (16:43 +0200)
Origin: upstream, https://github.com/OpenMathLib/OpenBLAS/commit/2671786e61325a97b87dbe1a2cdd8abb74486498
Bug: https://github.com/OpenMathLib/OpenBLAS/issues/5714
Reviewed-by: Sébastien Villemot <sebastien@debian.org>
Last-Update: 2026-04-07

Last-Update: 2026-04-07
Gbp-Pq: Name _Float16-loong64.patch

openblas_config_template.h

index 1735fdda2ac5f40ec05720a8674c237e93ce1d36..660a7da0dc1c92f6fae52a90a3765d0095ad5dd3 100644 (file)
@@ -40,7 +40,7 @@ typedef uint16_t bfloat16;
 #endif
 
 #if defined(__GNUC__) && (__GNUC__ > 12)
-#if defined(OPENBLAS_ARCH_POWER)
+#if defined(OPENBLAS_ARCH_POWER) || defined(OPENBLAS_ARCH_LOONGARCH64)
 typedef bfloat16 hfloat16;
 #else
 typedef _Float16 hfloat16;